package service

import (
	"pq/manager"
)
func NewResourceService() resourceService {
	resourceService := resourceService{}
	resourceService.resourceManager = &manager.ResourceSubjectManager{}
	return resourceService
}
type resourceService struct{
	resourceManager *manager.ResourceSubjectManager
}
//func (rs *resourceService) ImportSubject(resource_id int,subject_id int)(int64,error){
//	subjectDto := dto.SubjectDto{}
//	subjectDto.Set("id",subject_id)
//	return rs.resourceManager.ImportSubject(resource_id,subjectDto)
//}
func (rs resourceService) ImportSubjectByNum(lib_id int,resource_id int,num int)(int64,error){
	return rs.resourceManager.ImportSubjectByNum(lib_id,resource_id,num)
}
func (rs resourceService) Delete(resource_id int)(int64,error){
	return rs.resourceManager.Delete(resource_id)
}